package com.zzy.mccjt.retelimiter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: mccjt-cloud
 * @description:
 * @author: zhouyang.zheng
 * @create: 2022-08-01 16:44
 **/
@Data
//@Component
@ConfigurationProperties(prefix = RateLimiterProperties.PREFIX)
public class RateLimiterProperties {
    public static final String PREFIX = "request.rate.limiter";

    /**
     * 是否启用
     */
    private Boolean enabled = true;

    private String namespace = "RRL";
}
